home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / os2 / raytrace / dkb / os2port.exe / DKB212O2.ZIP / IBMOS2.MAK < prev    next >
Encoding:
Makefile  |  1991-07-04  |  3.7 KB  |  124 lines

  1. # IBM Makefile for DKB Ray Tracing Program by David Buck and Aaron Collins
  2. # This file is released to the public domain.
  3. # Edited by <turgut@trearn.bitnet> for OS/2 usage
  4. #
  5. # Note for the IBM Version:
  6. # Uses system environment variable LIB for the linker's .LIB file path.
  7. # (Example:  Set LIB=C:\LIB)  if you change this the two .LNK files will also
  8. # need to be changed as well.  The system environment variable CMODEL also
  9. # may be defined for the memory model of the compiler.  DKBTrace requires
  10. # the "Large" memory model.  (Example Set CMODEL=l)  If you don't want to
  11. # use the DOS environment variables, uncomment the following two lines:
  12. #
  13. #
  14. # MAKE Macros and Such...
  15. #
  16.  
  17. CMODEL    =L
  18. LIB    =d:\lib
  19. CC    =cl
  20. OBJ    =obj
  21. MACHINE_OBJ    = ibm.$(OBJ)
  22.  
  23. LINKER    =link /EXEPACK /PACKC /FARC /STACK:12288
  24.  
  25. # Uncomment for 8086/8088 instruction set usage
  26. #
  27. #CFLAGS    =/A$(CMODEL) /Gmsr /FPi /H32 /c /J
  28.  
  29. # Uncomment for 80186/80268 (incl. V20!) instruction set usage    [/Gmsr2]
  30. #
  31. CFLAGS    =/A$(CMODEL) /Gmsr2 /FPi87 /H32 /c /J /B2 C:\COMP\BINP\C2L.EXE
  32. # You may also need /Lp in the above line      -turgut
  33.  
  34. # If you have OS/2 to compile under, fix directory name and add this option
  35. # to CFLAGS above...
  36. #
  37. # /B2 C:\msc\c2l.exe
  38. #
  39.  
  40. # MS's NMAKE implicit rules for making an .OBJ file from a .C file...
  41. #
  42. .c.obj :
  43.  $(CC) $(CFLAGS) /Oaxz $*.c
  44.  
  45. # The option:
  46. #
  47. # /Oaxz
  48. #
  49. # Is purported by Microsoft to produce the fastest possible code.  In fact it
  50. # will break the RGB->HSV->RGB routines in IBM.C, if using the 8087 emulator.
  51. # So, for IBM.C we are using:
  52. #
  53. # /Ogiltaz
  54. #
  55. # This optimization string works for IBM.C and should then have worked for all
  56. # files, but, somehow, it BREAKS the compiler! (Internal compiler error C1001
  57. # on TEXTURE.C!!)  Oh, well...
  58. #
  59.  
  60. DKBOBJS = trace.$(OBJ) render.$(OBJ) tokenize.$(OBJ) parse.$(OBJ) \
  61.       objects.$(OBJ) spheres.$(OBJ) quadrics.$(OBJ) lighting.$(OBJ) \
  62.       prioq.$(OBJ) texture.$(OBJ) matrices.$(OBJ) csg.$(OBJ)  \
  63.       colour.$(OBJ) viewpnt.$(OBJ) ray.$(OBJ) planes.$(OBJ) iff.$(OBJ) \
  64.       gif.$(OBJ) gifdecod.$(OBJ) triangle.$(OBJ) raw.$(OBJ) dump.$(OBJ) \
  65.       targa.$(OBJ) quartics.$(OBJ) vect.$(OBJ) $(MACHINE_OBJ)
  66.  
  67. # DKB-Specific Dependencies
  68. #
  69. dkb.exe : $(DKBOBJS)
  70.     $(LINKER) @ibm.lnk
  71.  
  72. trace.$(OBJ) : trace.c dkbproto.h frame.h vector.h config.h
  73.  
  74. tokenize.$(OBJ) : tokenize.c dkbproto.h frame.h config.h
  75.  
  76. parse.$(OBJ) : parse.c dkbproto.h frame.h config.h
  77.  
  78. render.$(OBJ) : render.c dkbproto.h frame.h vector.h config.h
  79.  
  80. lighting.$(OBJ) : lighting.c dkbproto.h frame.h vector.h config.h
  81.  
  82. prioq.$(OBJ) : prioq.c dkbproto.h frame.h config.h
  83.  
  84. texture.$(OBJ) : texture.c dkbproto.h frame.h vector.h config.h
  85.  
  86. objects.$(OBJ) : objects.c dkbproto.h frame.h vector.h config.h
  87.  
  88. spheres.$(OBJ) : spheres.c dkbproto.h frame.h vector.h config.h
  89.  
  90. planes.$(OBJ) : planes.c dkbproto.h frame.h vector.h config.h
  91.  
  92. quadrics.$(OBJ) : quadrics.c dkbproto.h frame.h vector.h config.h
  93.  
  94. quartics.$(OBJ) : quartics.c dkbproto.h frame.h vector.h config.h
  95.  
  96. vect.$(OBJ) : vect.c dkbproto.h frame.h config.h
  97.  
  98. matrices.$(OBJ) : matrices.c dkbproto.h frame.h vector.h config.h
  99.  
  100. csg.$(OBJ) : csg.c dkbproto.h frame.h vector.h config.h
  101.  
  102. colour.$(OBJ) : colour.c dkbproto.h frame.h config.h
  103.  
  104. viewpnt.$(OBJ) : viewpnt.c dkbproto.h frame.h vector.h config.h
  105.  
  106. ray.$(OBJ) : ray.c dkbproto.h frame.h vector.h config.h
  107.  
  108. iff.$(OBJ) : iff.c dkbproto.h frame.h config.h
  109.  
  110. gif.$(OBJ) : gif.c dkbproto.h frame.h config.h
  111.  
  112. gifdecod.$(OBJ) : gifdecod.c dkbproto.h frame.h config.h
  113.  
  114. raw.$(OBJ) : raw.c dkbproto.h frame.h config.h
  115.  
  116. dump.$(OBJ) : dump.c dkbproto.h frame.h config.h
  117.  
  118. targa.$(OBJ) : targa.c dkbproto.h frame.h config.h
  119.  
  120. triangle.$(OBJ) : triangle.c dkbproto.h frame.h vector.h config.h
  121.  
  122. ibm.$(OBJ) : ibm.c dkbproto.h frame.h config.h
  123.  $(CC) $(CFLAGS) /Ogiltaz /D__STDC__ $*.c
  124.